{{- /* Deprecated parameter detection */ -}}
{{- $warns := slice -}}
{{- $errors := slice -}}

{{- with .Site.Params.gitRepo | or .Site.Params.page.edit -}}
  {{- $warns = $warns | append "The parameter `params.gitRepo` and `params.page.edit` is deprecated since v0.3.0, use `params.gitInfo` instead." -}}
{{- end -}}

{{- if len $warns -}}
  {{- warnf "Deprecated parameter detection until %v\n  - %v\n\n" (.Scratch.Get "version") (delimit $warns "\n  - ") -}}
{{- end -}}

{{- if len $errors -}}
  {{- errorf "Deprecated parameter detection until %v\n  - %v\n\n" (.Scratch.Get "version") (delimit $errors "\n  - ") -}}
{{- end -}}
